package com.example.mytestapplication;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.widget.Toast;

/**
 * Created by wei on 2017/8/11.
 */

public class StartRecordServiceReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context, "收到重启广播", Toast.LENGTH_SHORT).show();
        context.startService(new Intent(context,RecordService.class));
    }
}
